package com.zrwl.poscloud.base.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zrwl.poscloud.base.superI.SuperEntity;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@TableName("t_message")
public class Message extends SuperEntity<Message> {
    private static final long serialVersionUID = 1L;
    private int type;//人员类型
    private int level;//等级//
    private int platformType;//平台类型
    private int modelType;//平台类型
    private String fromUid;//来源
    private String toUid;//去往
    private String fromName;//来源名称
    private String toName;//去往名称
    private String fromAddr;//来源地址
    private String toAddr;//去往地址
    private String modelUid;//模板
    private String content;//内容
    private String result;//发送结果
    private String telephone;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;//发送时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readTime;//阅读时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;//删除时间

    //微信
    private String templateId;
    private String openId;
    private String url;
    private String first;
    private String remark;
}
